import Vue from "vue";
import Router from "vue-router";

import routes from "./routes.js";
import Layout from '../Layout.vue'




Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      component: Layout,
      // 整个app的容器
      children: routes,
    },
    // 登录
    {
      path: "/login",
    },
    // 注册
    {
      path: "regester",
    },
  ],
  mode: "history", // pushState
});
